#-*- coding: UTF-8 -*-
import re
import os
import tarfile
import mpath

def untar(filename):
	goalpath = mpath.gettempath()
	tar = tarfile.open(filename)
	names = tar.getnames()
	for name in names:
		tar.extract(name,goalpath)
	tar.close()
	return names